import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: happyiu
 * Date: 2021-10-26
 * Time: 17:04
 */
public class TestDemo {

    public static void main1(String[] args) {
        long num = 10L;
        // 定义一个长整型变量, 初始值写作 10l 也可以(小写的 L, 不是数字1).
        System.out.println(num) ;
        System.out.println(Long.MAX_VALUE);
        System.out.println(Long.MIN_VALUE);
        short value = 0;
        System.out.println(value);

    }

    public static void main2(String[] args) {
        double num = 1.0;
        System.out.println(num);
    }

    public static void main3(String[] args) {
        int a = 1;
        int b = 2;
        System.out.println(a / b);
// 执行结果

    }

    public static void main4(String[] args) {
        double a = 1.0;
        double b = 2.0;
        System.out.println(a / b);
        // 执行结果0.5
    }

    public static void main5(String[] args) {
        double num = 1.1;
        System.out.println(num * num);

    // 执行结果1.2100000000000002

    }

    public static void main6(String[] args) {
        float num = 1.0f;    // 写作 1.0F 也可以
        System.out.println(num);
    }

    public static void main7(String[] args) {
        char ch = '好';
        System.out.print(ch);
    }

    public static void main8(String[] args) {
        byte value = 120;
        System.out.println(value);
    }

    public static void main9(String[] args) {
        boolean value = true;
        System.out.println(value);
    }

    public static void main10(String[] args) {
        int [][] array = new int[2][];
        array[0]=new int[3];
        array[1]=new int[2];
        System.out.println(Arrays.toString(array));
    }

    public static void main11(String[] args) {
        boolean value = true;
        System.out.println(value);
    }

    public static void main(String[] args) {
        String name = "shuaige";
        System.out.println(name);
    }

}
